import { Component, OnInit } from '@angular/core';
import { Service } from '../../../server/server';

@Component({
  selector: 'app-journal-details',
  templateUrl: './journal-details.component.html'
})
export class JournalDetailsComponent implements OnInit {

  constructor(private server :Service) { }

  ngOnInit() {
    this.journalsearcheventEmit = this.server.journaldetailseventEmit.subscribe((value: any) => {
      this.details = value;
      //console.log(value)
    });
  }
  //取消订阅
  public journalsearcheventEmit:any;
  ngOnDestroy() {
    this.journalsearcheventEmit ? this.journalsearcheventEmit.unsubscribe() : '';
  }

  public details:any;

}
